package com.zzuli.practice.util;

/**
 * 获取集合的key
 */
public class RedisKeyUtil {

    private static final String SPLIT = ":";

    private static final String PREFIX_ENTITY_LIKE = "like:post";


    private static final String PREFIX_POST = "post";

    // 帖子的赞
    // like:post:entityId -> set(username)
    public static String getPostLikeKey(int postId){
        return PREFIX_ENTITY_LIKE + SPLIT + postId;
    }


}
